@import 'mixins/clear.less';

#wrapper {

    // 内容区
    main {

        // 版心元素
        .content {
            width: 1200px;
            margin: 15px auto 0 auto;
            .clearfix();

            // 路径导航
            #navPath {
                padding: 9px 15px 9px 0;
                // 去掉间距
                font-size: 0;

                a {
                    font-size: 12px;
                }

                i {
                    font-size: 12px;
                    padding: 0 5px;
                }
            }

            // 中间区域
            #center {
                margin: 5px 0 15px;
                .clearfix();

                // 左侧放大镜
                #left {
                    width: 400px;
                    float: left;

                    // 左侧上方大图
                    #leftTop {
                        width: 400px;
                        position: relative;

                        // 原图
                        #src {
                            width: 400px;
                            height: 400px;
                            border: 1px solid #dfdfdf;
                            position: relative;

                            // 图片
                            img {
                                width: 400px;
                                height: 400px;
                            }

                            // 蒙版元素
                            #mask {
                                width: 200px;
                                height: 200px;
                                background-color: rgba(255, 255, 255, .5);
                                border: 1px solid #ddd;
                                position: absolute;
                                left: 0;
                                top: 0;
                            }
                        }

                        // 放大之后的图
                        #zoom {
                            width: 400px;
                            height: 400px;
                            border: 1px solid #ddd;
                            left: 420px;
                            top: 0;
                            position: absolute;
                            overflow: hidden;

                            // 大图
                            img {
                                width: 800px;
                                height: 800px;
                                position: absolute;
                                left: 0;
                                top: 0;
                            }
                        }
                    }

                    #leftBottom {
                        width: 400px;
                        margin-top: 5px;
                        .clearfix();

                        a {
                            width: 10px;
                            height: 54px;
                            border: 1px solid #ccc;
                            background-color: #ebebeb;
                            text-align: center;
                            line-height: 54px;
                            float: left;

                            // 左侧按钮
                            &:first-child {
                                margin-right: 4px;
                            }
                        }

                        #picList {
                            width: 372px;
                            height: 56px;
                            float: left;
                            overflow: hidden;
                            position: relative;

                            ul {
                                white-space: nowrap;
                                font-size: 0;
                                position: absolute;
                                // 动画
                                transition: 0.5s;

                                li {
                                    width: 50px;
                                    height: 50px;
                                    border: 1px solid #ccc;
                                    padding: 2px;
                                    margin-right: 20px;
                                    display: inline-block;

                                    img {
                                        width: 50px;
                                        height: 50px;
                                    }
                                }
                            }
                        }
                    }
                }

                #right {
                    width: 700px;
                    float: right;

                    .rightTop {
                        h3 {
                            font-size: 14px;
                            line-height: 21px;
                            margin-top: 15px;
                        }

                        >p {
                            color: #e12228;
                            margin-top: 15px;

                        }

                        .priceWrap {
                            margin-top: 10px;
                            line-height: 28px;
                            background-color: #fee9ec;
                            padding: 7px;

                            .priceTop {
                                .clearfix();

                                // 价格
                                >span {
                                    margin-right: 15px;
                                    float: left;
                                }

                                // 中间
                                .price {
                                    float: left;
                                    color: #c12;

                                    >span {
                                        font-size: 16px;
                                        float: left;
                                    }

                                    >p {
                                        font-size: 24px;
                                        float: left;
                                        font-weight: bold;
                                    }

                                    >i {
                                        font-size: 12px;
                                        color: #c12;
                                        float: left;
                                    }
                                }

                                // 累计评价
                                >p {
                                    float: right;
                                }
                            }

                            .priceBottom {

                                .clearfix();

                                // 促销
                                >span {
                                    float: left;
                                    margin-right: 15px;
                                }

                                // 加价购
                                >p {
                                    width: 520px;
                                    line-height: 28px;
                                    float: left;

                                    >span {
                                        color: #999;

                                        // 加价购
                                        &:first-child {
                                            background-color: #c81623;
                                            padding: 3px;
                                            color: #fff;
                                        }
                                    }
                                }

                            }

                        }

                        .support {
                            margin-top: 10px;
                            line-height: 28px;
                            .clearfix();

                            >span {
                                margin-right: 15px;
                                float: left;
                            }

                            >p {
                                float: left;
                                color: #999;
                            }
                        }

                        .address {
                            border-bottom: 1px solid #ededed;
                            margin-top: 10px;
                            padding-bottom: 5px;
                            line-height: 28px;
                            .clearfix();

                            >span {
                                margin-right: 15px;
                                float: left;
                            }

                            >p {
                                float: left;
                                color: #999;
                            }
                        }

                    }

                    .rightBottom {
                        margin-top: 10px;
                        line-height: 28px;

                        .choice {
                            .clearfix();

                            .mark {
                                height: 30px;
                                background-color: snow;
                                border: 1px solid #ddd;
                                padding: 0 20px;
                                margin-right: 20px;
                                text-align: center;
                                line-height: 30px;
                                float: left;

                                a {
                                    color: red;
                                    margin-left: 20px;
                                }
                            }
                        }

                        .type {
                            dl {
                                margin-top: 13px;
                                margin-bottom: 13px;
                                .clearfix();

                                dt {
                                    margin-right: 15px;
                                    float: left;
                                }

                                dd {
                                    float: left;
                                    margin-right: 5px;
                                    color: #666;
                                    line-height: 24px;
                                    padding: 2px 14px;
                                    border-top: 1px solid #eee;
                                    border-left: 1px solid #eee;
                                    border-right: 1px solid #bbb;
                                    border-bottom: 1px solid #bbb;

                                    &:first-of-type {
                                        color: red;
                                    }
                                }
                            }
                        }

                        .cart {
                            .clearfix();
                            .count {
                                width: 55px;
                                margin-right: 15px;
                                position: relative;
                                float: left;

                                input {
                                    width: 38px;
                                    height: 37px;
                                    border: 1px #ddd solid;
                                    color: #555;
                                }

                                a {
                                    width: 15px;
                                    height: 18px;
                                    background-color: #f1f1f1;
                                    color: #666;
                                    border: 1px #ddd solid;
                                    line-height: 18px;
                                    text-align: center;
                                    position: absolute;
                                    right: 1px;

                                    &:first-child {
                                        top: 0;
                                    }

                                    &:last-child {
                                        top: 19px;
                                        margin-top: 0;
                                    }
                                }
                            }

                            button {
                                padding: 0 25px;
                                height: 36px;
                                line-height: 36px;
                                font-size: 16px;
                                background-color: #e1251b;
                                color: white;
                                text-align: center;
                                border: none;
                                float: left;
                            }
                        }
                    }
                }
            }
        }
    }
}